$(document).ready(function () {
    addData();
    addReview();
    addBottom();
})


function addData() {
    for (let i = 0; i < dataList.remmends.length; i++) {
        $(".container_cont_des").append('<div class="cont_rocomment">\n' +
            '                <div class="cont_recommnet_top">\n' +
            '                    <img src="' + dataList.remmends[i].cover +
            '" alt="">\n' +
            '                    <div class="cont_recomment_top_free">\n' +
            '                        免费点播\n' +
            '                    </div>\n' +
            '                    <div class="cont_recomment_top_time">\n' +
                                    dataList.remmends[i].time +
            '                    </div>\n' +
            '                </div>\n' +
            '                <div class="cont_recommnet_bottom">\n' +
            '                    <div class="cont_recomment_bottom_title">\n' +
            '                        \n' + dataList.remmends[i].title +
            '                    </div>\n' +
            '                    <div class="cont_recomment_bottom_des">\n' +
            '                        \n' + dataList.remmends[i].des +
            '                    </div>\n' +
            '                </div>\n' +
            '            </div>')
    }
}

function addReview() {
    for (let i = 0; i < dataList.hotFiml.length; i++) {
        $('.container_review_des').append(' <div class="hot_reciew">\n' +
            '                <span class="user_img">\n' +
            '                    <img src="' + dataList.hotFiml[i].cover +
            '" alt="">\n' +
            '                </span>\n' +
            '                <span>\n' +
            '                    <span class="user_ishot">\n' +
            '                        热\n' +
            '                    </span>\n' +
            '                    <span class="user_nickname">\n' +
            '\n' +              dataList.hotFiml[i].title +
            '                    </span>\n' +
            '                    <span class="user_time">\n' +
                                dataList.hotFiml[i].time +
            '                    </span>\n' +
            '                </span>\n' +
            '                <p class="user_hot_reciew_content">\n' +
                                dataList.hotFiml[i].des +
            '                </p>\n' +
            '            </div>' +
            '<div class="line">' +
            '</div>')
    }
}
function addBottom() {
    for (let i = 0; i < dataList.tujians.length; i++) {
        $('.container_tuijian').append('  <div class="cont_tuijian">\n' +
            '                <img src="" alt="">\n' +
            '                <img src="' +
            dataList.tujians[i].cover +
            '" alt="">\n' +
            '            </div>')
    }
}